package org.springframework.example.aop.advice;

import org.springframework.aop.ThrowsAdvice;

import java.lang.reflect.Method;

public class MyThrowsAdvice implements ThrowsAdvice {


	public void afterThrowing(Method method, Object[] args, Object target, NullPointerException ex){

		System.out.println("空指针异常");
	}
	public void afterThrowing(Method method, Object[] args, Object target, IllegalArgumentException ex){

		System.out.println("非法参数异常");
	}


}
